package com.elvin.wx.beans;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

/**
 * <p>
 * 报警表
 * </p>
 *
 * @author zhenchl
 * @since 2022-01-16
 */
@TableName("fn_warm")
public class Warm extends Model<Warm> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 设备编号
     */
    private String deviceNumber;
    /**
     * 报警等级
     */
    private Integer warnLevel;
    /**
     * 报警时间
     */
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date warnTime;
    /**
     * 确认时间
     */


    private Date conformTime;
    /**
     * 确认原因
     */
    private String conformCause;
    /**
     * 备注
     */
    private String comments;
    private Date createTime;

    /**
     * 产品id
     */
    private String proId;
    /**
     * 设备ID
     */
    private String devId;
    /**
     * 命令字符串
     */
    private String args;

    public String getProId() {
        return proId;
    }

    public void setProId(String proId) {
        this.proId = proId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public Integer getWarnLevel() {
        return warnLevel;
    }

    public void setWarnLevel(Integer warnLevel) {
        this.warnLevel = warnLevel;
    }

    public Date getWarnTime() {
        return warnTime;
    }

    public void setWarnTime(Date warnTime) {
        this.warnTime = warnTime;
    }

    public Date getConformTime() {
        return conformTime;
    }

    public void setConformTime(Date conformTime) {
        this.conformTime = conformTime;
    }

    public String getConformCause() {
        return conformCause;
    }

    public void setConformCause(String conformCause) {
        this.conformCause = conformCause;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Warm{" +
        "id=" + id +
        ", deviceNumber=" + deviceNumber +
        ", warnLevel=" + warnLevel +
        ", warnTime=" + warnTime +
        ", conformTime=" + conformTime +
        ", conformCause=" + conformCause +
        ", comments=" + comments +
        ", createTime=" + createTime +
        "}";
    }
}
